package com.atguigu.pamentdemo.service;

import com.atguigu.pamentdemo.entity.RefundInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface refundInfoService extends IService<RefundInfo> {

    /**
     * 创建 退款记录
     * @param orderNo 订单号
     * @param reason 退款原因
     * @return
     */
    RefundInfo createRefundByOrderNo(String orderNo, String reason);

    /**
     * 更新退款单
     * @param content
     */
    void updateRefund(String content);

    /**
     * 定时查找退款中的订单
     * @param i
     * @return
     */
    List<RefundInfo> getNoRefundOrderByDuration(int i);
}
